package com.rede.didiok.admin.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.rede.didiok.admin.service.SystemConfigService;
import com.rede.didiok.common.utils.R;

// import org.apache.shiro.authz.annotation.RequiresPermissions;



/**
 * 系统配置表
 *
 * @author Rede
 * @email didiok@foxmail.com
 * @date 2023-08-07 18:21:17
 */
@RestController
@RequestMapping("/admin/feign/systemConfig")
public class SystemConfigController {
    @Autowired
    private SystemConfigService systemConfigService;

    /**
     * 获取一条系统配置信息
     */
    @GetMapping("/getSystemConfig")
    R getSystemConfig(){
        return R.ok().setData(systemConfigService.getSystemConfig());
    }
}
